
package com.jf.cloud.api.leaf.dto;

import io.swagger.v3.oas.annotations.media.Schema;

/**
 * 分布式id请求参数
 *
 * @author zz
 * @date 2022-08-17 15:25:19
 */
public class SegmentItemDTO {
    private String key;

    @Schema(description = "所需的id数量" )
    private Integer count;

    public SegmentItemDTO() {
    }

    public SegmentItemDTO(String key, Integer count) {
        this.key = key;
        this.count = count;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    @Override
    public String toString() {
        return "SegmentItemDTO{" +
                "key='" + key + '\'' +
                ", count=" + count +
                '}';
    }
}
